package com.csap.framework.oauth2.request;

import com.csap.framework.annotation.apidoc.ApiModel;
import com.csap.framework.annotation.apidoc.ApiModelProperty;
import com.csap.framework.oauth2.BaseRequest;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * Code授权码 相关参数
 *
 * @author yangchengfu
 * @dataTime 2021年-08月-03日 10:38:00
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
@ApiModel("Code授权码获取Access-Token")
public class TokenRequest extends BaseRequest<TokenRequest> {
    @ApiModelProperty(value = "回调的URL", forceReq = true, required = true)
    private String redirect_uri;
    @ApiModelProperty(value = "code码", forceReq = true, required = true)
    private String code;
    @ApiModelProperty(value = "验证码", forceReq = true, required = true)
    private String smsCode;
    @ApiModelProperty(value = "登录账号", forceReq = true)
    private String username;
    @ApiModelProperty(value = "登录密码", forceReq = true)
    private String password;
}
